﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
namespace VNSoft.Administrator
{
    public partial class GioiThieu : System.Web.UI.Page
    {
        clsXuLy ex = new clsXuLy();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                
                btnUpdate.Visible = true;
                fcknd.Value = ex.GetValueString_Text("select top 1 body from tblgioithieu");
            }
        }
        protected void btnUpdate_Click(object sender, EventArgs e)
        {
            SqlParameter[] p = new SqlParameter[1];
            p[0] = new SqlParameter("@Body", fcknd.Value);
            p[0].SqlDbType = SqlDbType.NVarChar;
            ex.ExecuteNonQuerry("sp_GioiThieu_Update", p);
        }
    }
}